#!/bin/sh
#
# Startup script for bip as standalone server
#

# Source defaults file; edit that file to configure this script.
ENABLED=1
PARAMS=""
if [ -e /opt/etc/default/bip ]; then
  . /opt/etc/default/bip
fi

test "$ENABLED" != "0" || exit 0

if [ -n "`/opt/bin/pidof bip`" ]; then
    /opt/bin/killall bip 2>/dev/null
fi

/opt/bin/bip -f /opt/etc/bip.conf $PARAMS
